package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;

public class UserController {
    private UserService userService;
    public void setUserService(UserService userService){
        this.userService=userService;
    }
    private User user;
    public void setUser(User user){
        this.user=user;
    }
    public void addUser(){
        System.out.println("向services里添加user");
        userService.addUser(user);
    }
}
